Doing it before the grab messes up the grab helper's tracking
of where the focus was before, leading to it not tracking the
saved focus correctly, meaning that when we pop the menu back
down with escape, it doesn't restore focus correctly.
https://bugzilla.gnome.org/show_bug.cgi?id=694123
if (this._passwordItem)
this._updatePasswordItem();
+ this.parent(animate);
+ this._entry.add_style_pseudo_class('focus');
+
let direction = Gtk.DirectionType.TAB_FORWARD;
if (!this.actor.navigate_focus(null, direction, false))
this.actor.grab_key_focus();
-
- this.parent(animate);
- this._entry.add_style_pseudo_class('focus');
},
close: function(animate) {